class Father{
    public int age;
    public Father(){
        System.out.println("父类的构造代码块");
    }
    {
        System.out.println("父类实例化代码块");
    }
    static {
        System.out.println("父类的静态代码块");
    }
}
class Son extends Father{
    public Son(){
        super();
        System.out.println("子类的构造代码块");
    }
    {
        System.out.println("子类的实例化代码块");
    }
    static {
        System.out.println("子类的静态代码块");
    }
}
public class Test {
    public static void main(String[] args) {
        Son son1=new Son();
        System.out.println("=======");
        Son Son2=new Son();
    }
}
